package com.blyat.xsoft.kernel.component.disruptor;

import com.lmax.disruptor.EventTranslatorVararg;

/**
 * @Auther: syh
 * @Date: 2020/7/9
 * @Description:
 */
public class MetadataTranslator<T> implements EventTranslatorVararg<Metadata<T>> {

    @Override
    public void translateTo(Metadata<T> metadata, long sequence, Object... args) {
        metadata.set(((T) (args[0])));
    }
}
